package com.hp.shiro.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 日志实体
 * @author Administrator
 *
 */
@Entity
@Table(name = "loginfo")
public class LogInfo implements Serializable{

	private static final long serialVersionUID = -52457939100593286L;
	
	/**主键***/
	private Long id;
	
	/**用户名***/
	private String account;
	
	/**操作类型***/
	private String optType;
	
	/**请求参数***/
	private String reqMsg;
	
	/**返回参数***/
	private String resMsg;
	
	/**操作时间**/
	private Date operateTime;
	
	/**请求接口uri**/
	private String apiUri;
	
	/**请求接口ip地址**/
	private String ip;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getOptType() {
		return optType;
	}

	public void setOptType(String optType) {
		this.optType = optType;
	}

	public String getReqMsg() {
		return reqMsg;
	}

	public void setReqMsg(String reqMsg) {
		this.reqMsg = reqMsg;
	}

	public String getResMsg() {
		return resMsg;
	}

	public void setResMsg(String resMsg) {
		this.resMsg = resMsg;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	public String getApiUri() {
		return apiUri;
	}

	public void setApiUri(String apiUri) {
		this.apiUri = apiUri;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
}
